FROM ubuntu:22.04-python3.10
LABEL authors="yzpang"

# 定义环境变量
ENV AGE=30

# 定义参数
ARG PIP_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple

RUN mkdir -p "/root/workspace/model-server"
RUN mkdir -p "/home/models"

# 设置工作目录
WORKDIR /root

# 复制requirements.txt文件
COPY ../../requirements.txt .

# 安装python依赖
RUN pip config set global.index-url "$PIP_INDEX" && \
    pip install -r requirements.txt && \
    pip install paddlepaddle==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
